package main

import (
	"bytes"
	"fmt"
	"math/rand"
)

var str string = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

func randStr(strlen int) string {
	//rand.Seed(time.Now().UnixNano())
	var s = bytes.Buffer{}
	for i := 0; i < strlen; i++ {
		fmt.Println(rand.Int63n(10), "----")
		var r = rand.Intn(len(str))
		fmt.Println(r, "====")
		s.WriteByte(str[r])
	}

	return s.String()
}

func main() {
	var s = randStr(5)
	fmt.Println(s)
}
